package com.ruoyi.project.cyq.personnelManagement.personnel.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.framework.web.domain.BaseEntity;

import java.util.Date;

/**
 * @author ming
 * @date 2020-09-18 17:17
 * @desc 百战程序员 http://www.itbaizhan.com
 */
public class Personnel extends BaseEntity {
    //    员工ID
    private Long staffId;
    //    员工姓名
    private String staffName;
    //    员工性别
    private String staffSex;
    //    员工出生年月
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date staffBirthDate;
    //    员工学历
    private String staffEducation;
    //    员工专业
    private String staffSpecialty;
    //    员工工作年限
    private String staffWorkYear;
    //    员工政治面貌
    private String staffPolitics;
    //    员工籍贯
    private String staffNativePlace;
    //    员工家庭住址
    private String staffHomeLocation;
    //    员工户口所在地
    private String staffRegisteredLocation;
    //    员工邮编
    private String staffPostcode;
    //    员工上传照片
    private String staffUpdateJpg;

    public Personnel(Long staffId, String staffName, String staffSex, Date staffBirthDate, String staffEducation, String staffSpecialty, String staffWorkYear, String staffPolitics, String staffNativePlace, String staffHomeLocation, String staffRegisteredLocation, String staffPostcode, String staffUpdateJpg, String staffPhone) {
        this.staffId = staffId;
        this.staffName = staffName;
        this.staffSex = staffSex;
        this.staffBirthDate = staffBirthDate;
        this.staffEducation = staffEducation;
        this.staffSpecialty = staffSpecialty;
        this.staffWorkYear = staffWorkYear;
        this.staffPolitics = staffPolitics;
        this.staffNativePlace = staffNativePlace;
        this.staffHomeLocation = staffHomeLocation;
        this.staffRegisteredLocation = staffRegisteredLocation;
        this.staffPostcode = staffPostcode;
        this.staffUpdateJpg = staffUpdateJpg;
        this.staffPhone = staffPhone;
    }

    @Override
    public String toString() {
        return "Personnel{" +
                "staffId=" + staffId +
                ", staffName='" + staffName + '\'' +
                ", staffSex='" + staffSex + '\'' +
                ", staffBirthDate=" + staffBirthDate +
                ", staffEducation='" + staffEducation + '\'' +
                ", staffSpecialty='" + staffSpecialty + '\'' +
                ", staffWorkYear='" + staffWorkYear + '\'' +
                ", staffPolitics='" + staffPolitics + '\'' +
                ", staffNativePlace='" + staffNativePlace + '\'' +
                ", staffHomeLocation='" + staffHomeLocation + '\'' +
                ", staffRegisteredLocation='" + staffRegisteredLocation + '\'' +
                ", staffPostcode='" + staffPostcode + '\'' +
                ", staffUpdateJpg='" + staffUpdateJpg + '\'' +
                ", staffPhone='" + staffPhone + '\'' +
                '}';
    }

    /*
    * 员工电话
    * */
    private String staffPhone;

    public Long getStaffId() {
        return staffId;
    }

    public void setStaffId(Long staffId) {
        this.staffId = staffId;
    }

    public String getStaffName() {
        return staffName;
    }

    public void setStaffName(String staffName) {
        this.staffName = staffName;
    }

    public String getStaffSex() {
        return staffSex;
    }

    public void setStaffSex(String staffSex) {
        this.staffSex = staffSex;
    }


    public String getStaffEducation() {
        return staffEducation;
    }

    public void setStaffEducation(String staffEducation) {
        this.staffEducation = staffEducation;
    }

    public String getStaffSpecialty() {
        return staffSpecialty;
    }

    public void setStaffSpecialty(String staffSpecialty) {
        this.staffSpecialty = staffSpecialty;
    }

    public String getStaffWorkYear() {
        return staffWorkYear;
    }

    public void setStaffWorkYear(String staffWorkYear) {
        this.staffWorkYear = staffWorkYear;
    }

    public String getStaffPolitics() {
        return staffPolitics;
    }

    public void setStaffPolitics(String staffPolitics) {
        this.staffPolitics = staffPolitics;
    }

    public String getStaffNativePlace() {
        return staffNativePlace;
    }

    public void setStaffNativePlace(String staffNativePlace) {
        this.staffNativePlace = staffNativePlace;
    }

    public String getStaffHomeLocation() {
        return staffHomeLocation;
    }

    public void setStaffHomeLocation(String staffHomeLocation) {
        this.staffHomeLocation = staffHomeLocation;
    }

    public String getStaffRegisteredLocation() {
        return staffRegisteredLocation;
    }

    public void setStaffRegisteredLocation(String staffRegisteredLocation) {
        this.staffRegisteredLocation = staffRegisteredLocation;
    }

    public String getStaffPostcode() {
        return staffPostcode;
    }

    public void setStaffPostcode(String staffPostcode) {
        this.staffPostcode = staffPostcode;
    }

    public String getStaffUpdateJpg() {
        return staffUpdateJpg;
    }

    public void setStaffUpdateJpg(String staffUpdateJpg) {
        this.staffUpdateJpg = staffUpdateJpg;
    }

    public Personnel() {
    }


    /**
     * 获取 员工出生年月
     *
     * @return staffBirthDate 员工出生年月
     */
    public Date getStaffBirthDate() {
        return this.staffBirthDate;
    }

    /**
     * 设置 员工出生年月
     *
     * @param staffBirthDate 员工出生年月
     */
    public void setStaffBirthDate(Date staffBirthDate) {
        this.staffBirthDate = staffBirthDate;
    }

    /**
     * 获取 员工电话
     *
     * @return staffPhone 员工电话
     */
    public String getStaffPhone() {
        return this.staffPhone;
    }

    /**
     * 设置 员工电话
     *
     * @param staffPhone 员工电话
     */
    public void setStaffPhone(String staffPhone) {
        this.staffPhone = staffPhone;
    }
}
